<?php
/*echo var_dump($_SESSION['administrador']);
exit;*/
include('classes/main.class.php');
include('classes/survey.class.php');

$survey = new UCCASS_Survey;

$output = $survey ->com_header();

//session_destroy();
//exit;
//echo var_dump($_SESSION['administrador']);
/*session_unset();
session_destroy();*/

if(!isset($_SESSION['administrador']) || empty($_SESSION['administrador'])){

	$output .= $survey ->login();
}else{
	$output .= $survey ->available_surveys();
}
$output .= $survey ->com_footer();

echo $output;

?>